<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>发表动态</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/second.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/welcome.css" />
</head>

<body>

	<nav class="nav navbar navbar-inverse navbar-static-top"
		role="navigation">
		<div class="container">
			<div class="navbar-header">
				<a href="welcome.html" class="navbar-brand">梦三科技</a>
			</div>
			<ul class="nav navbar-nav navbar-static-top">
				<li class="active"><a
					href="${pageContext.request.contextPath}/user/blog.do">动态</a></li>
				<li><a href="#">|</a></li>
				<li><a href="${pageContext.request.contextPath}/user/help.do">救急</a>
				</li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="navbar-text"><input type="text" name="input"
					id="input" value="输入内容" /></li>
				<li class="navbar-btn btn btn-danger btn-sm">站内搜索</li>
			</ul>
		</div>
	</nav>
	<div class="row">

		<div class="content clearfix">

			<div class="left-col slidebar col-lg-3">
				<div class="img">
					<img src="${pageContext.request.contextPath}/img/head1.jpg"
						width="100%" height="100%" alt="头像" class="img-circle" />
				</div>
				<ul>
					<li><button class="btn btn-danger btn-block">
							<a href="${pageContext.request.contextPath}/user/alter.do">修改个人</a>
						</button></li>
					<li><button class="btn btn-danger btn-block">
							<a href="${pageContext.request.contextPath}/user/myblog.do">我的动态</a>
						</button></li>
					<li><button class="btn btn-danger btn-block">
							<a href="${pageContext.request.contextPath}/user/myhelp.do">我的救急</a>
						</button></li>
				</ul>
			</div>

			<div class="right-col col-lg-9">
				<div class="content">
					<form action="${pageContext.request.contextPath}/user/post.do"
						method="post" role="form">
						<div class="form-group text-center">
							<textarea name="binfo" cols="100" rows="10">请在这里输入附注</textarea>
						</div>

						<div class="form-group">
							<div class="form-group pull-left">
								<select name="hid" id="hid">
									<c:forEach items="${hobbylist}" var="hobby">
										<option value="${hobby.hid}">${hobby.hinfo}</option>
									</c:forEach>
								</select>
							</div>
							<div class="form-group pull-right">
								<button type="submit" class="btn btn-danger btn-sm ">博文提交</button>
							</div>
						</div>
					</form>
					<ul>
		<c:forEach items="${blogsetlist}" var="blogset">
			<li>
			<div class="form-group">
						<div class="row">
							<div id="purl" class="header-left col-lg-3">
								<img src="${blogset.purl}" width="100%" height="100%" class="img-circle"
									alt="头像" />
							</div>
							<div id="uname">${blogset.uname}</div>
							<div class="header-right col-la-9">
								<div id="binfo">${blogset.binfo}</div>
							</div>
						</div>
						<div class="row">
							<div id="btime" class="footer-left col-lg-6 text-left">
								<span>${blogset.btime}</span>
							</div>
							<div class="footer-left col-lg-6 text-right">
								<button type="button">评论</button>
							</div>
						</div>
					</div>
			
			
			

			
			</li>		
		</c:forEach>
	</ul>
					



				</div>
			</div>
		</div>
	</div>
	</div>
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
</body>

</html>